import { CoreIndicateEnum } from "@/model/city-map.enum";

export default {
  // 发货
  [CoreIndicateEnum.SendGoods]: [
    { title: '货源 ID', dataIndex: 'cargo_id', key: 'cargo_id' },
    { title: '货主 ID', dataIndex: 'user_id', key: 'user_id' },
    { title: '货源类型', dataIndex: 'first_category_name', key: 'first_category_name', ellipsis: true },
    { title: '出发地', dataIndex: 'start_county_name', key: 'start_county_name', ellipsis: true },
    { title: '目的地', dataIndex: 'end_county_name', key: 'end_county_name', ellipsis: true },
  ],
  // 完单
  [CoreIndicateEnum.CompletionQuantity]: [
    { title: '订单 ID', dataIndex: 'order_id', key: 'order_id' },
    { title: '货源 ID', dataIndex: 'cargo_id', key: 'cargo_id' },
    { title: '货主 ID', dataIndex: 'shipper_user_id', key: 'shipper_user_id', ellipsis: true },
    { title: '司机 ID', dataIndex: 'driver_user_id', key: 'driver_user_id', ellipsis: true },
    { title: '订单创建时间', dataIndex: 'create_time', key: 'create_time', ellipsis: true },
    { title: '订单完成时间', dataIndex: 'order_complete_time', key: 'order_complete_time', ellipsis: true },
  ],
  // 司机
  [CoreIndicateEnum.DriverNums]: [
    { title: '用户ID', dataIndex: 'user_id', key: 'user_id' },
    { title: '姓名', dataIndex: 'user_name', key: 'user_name' },
    { title: '性别', dataIndex: 'gender', key: 'gender', ellipsis: true },
    { title: '车牌号', dataIndex: 'truck_vin_mask', key: 'truck_vin_mask' },
    { title: '车型', dataIndex: 'truck_type', key: 'truck_type', ellipsis: true },
    // '车型，1:平板,2:高栏,3:厢式,4:集装箱,7:危险品,89:冷藏,10:保温,12:高低板,13:面包车,14:棉被车,15:爬梯车,16:飞翼车,-99:未知',
  ],
  // 货主
  [CoreIndicateEnum.ShipnerNums]: [
    { title: '货主 ID', dataIndex: 'user_id', key: 'user_id' },
    { title: '姓名', dataIndex: 'user_name', key: 'user_name' },
    { title: '性别', dataIndex: 'gender', key: 'gender', ellipsis: true },
  ],
  // 停留司机
  [CoreIndicateEnum.StopingDriversCount]: [
    { title: '司机ID', dataIndex: 'driver_id', key: 'driver_id' },
    { title: '停留地址', dataIndex: 'dtl_address', key: 'dtl_address' },
    { title: '停留开始时间', dataIndex: 'start_time', key: 'start_time', ellipsis: true },
    { title: '停留时长', dataIndex: 'staytime', key: 'staytime', ellipsis: true },
  ],
}